package com.cskaoyan.javase.basic._8scanner;

import java.util.Scanner;

/**
 * @description: 测试
 * @author: wuguidong@cskaoyan.onaliyun.com
 **/

public class Demo2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        /*for (int i = 0; i < 10; i++) {
            String s = sc.nextLine();

            //...........
            int a = sc.nextInt();
            System.out.println(s);
            System.out.println(a);
        }*/
        /*String s = sc.next();
        System.out.println(s);*/
        
        //建议在开发中只使用nextLine方法
        //Integer.parseInt()传入一个字符串，转换成int
        String s = sc.nextLine();
        String intStr = sc.nextLine();
        int a = Integer.parseInt(intStr);
        System.out.println(a);

    }
}
